package com.chenjian.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chenjian.entity.Sources;
import com.chenjian.mapper.SourcesMapper;
import com.chenjian.service.SourcesService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author chenjian
 * @since 2020-04-13
 */
@Service
public class SourcesServiceImpl extends ServiceImpl<SourcesMapper, Sources> implements SourcesService {

    @Override
    public List<Sources> getSourcesByUserId(Long id) {
        return this.baseMapper.getSourcesByUserId(id, 0, 3);

    }
}
